//
//  ESTUserInfo.m
//  ESTSCRMAPP
//
//  Created by 李贤立 on 2018/9/22.
//  Copyright © 2018年 Capfer. All rights reserved.
//

#import "ESTUserInfo.h"

@implementation ESTDLRInfo

@end
@implementation ESTOrgConfigInfo

@end
@implementation ESTEmpInfo

@end
@implementation ESTAuthorityInfo

@end

@interface ESTUserInfo ()

@end

@implementation ESTUserInfo
+ (NSDictionary *)mj_objectClassInArray {
    return @{
             @"DLR_INFO": @"ESTDLRInfo",
             @"EMP_INFO": @"ESTEmpInfo",
             @"ORG_CONFIG_INFO": @"ESTOrgConfigInfo",
             @"AUTHORITY_INFO": @"ESTAuthorityInfo"
             };
}
- (void)setLogin_user_type:(ESTLOGINUSERTYPE)login_user_type {
    _login_user_type = login_user_type;
    switch (login_user_type) {
        case USER_TYPE_ADMIN:
            CoreInfo.scrmType = SCRM_TYPE_MANAGER;
            break;
        case USER_TYPE_CONSULTANT:
            CoreInfo.scrmType = SCRM_TYPE_ASSISTANT;
            break;
        case USER_TYPE_SALE_MANAGER:
            CoreInfo.scrmType = SCRM_TYPE_MANAGER;
            break;
        case USER_TYPE_TMK_MANAGER:
            CoreInfo.scrmType = SCRM_TYPE_MANAGER;
            break;
        case USER_TYPE_TMK_COMMISSIONER:
            CoreInfo.scrmType = SCRM_TYPE_ASSISTANT;
            break;
        case USER_TYPE_MANAGER:
            CoreInfo.scrmType = SCRM_TYPE_MANAGER;
            break;
        case USER_TYPE_ACTIVITY_COMMISSIONER:
            CoreInfo.scrmType = SCRM_TYPE_ACTIVITY;
            break;
        case USER_TYPE_INFO_ASSISTANT:
        case USER_TYPE_RECEPTION_COMMISSIONER:
        default:
            CoreInfo.scrmType = SCRM_TYPE_ASSISTANT;
            break;
    }
}
@end
